package com.learn;
import com.sun.xml.internal.fastinfoset.util.StringArray;
import com.sun.xml.internal.ws.util.StringUtils;

import java.io.IOException;
import java.util.Arrays;
import java.util.Scanner;
import java.lang.StringBuffer;

public class ObParm {
    public static void main(String[] args) {

                StringBuffer stringBuffer=new StringBuffer("123");
                stringBuffer.reverse();
        System.out.println(stringBuffer.toString());
        
                Scanner scanner = new Scanner(System.in);
                int N = scanner.nextInt();
                int count = 0;
                for (int i = 1; i <= N; i++) {
                    int temp=(int) Math.pow(i,3);
                    double sqrt = Math.sqrt(temp);

                    String string = Double.toString(sqrt);
                    System.out.println(string);
                    int index = string.indexOf(".");
                    System.out.println("索引"+index);
                    String substring = string.substring(index + 1);

                    if (substring.equals("0")){
                        count++;
                    }
                }
                System.out.println(count);
                scanner.close();
            }
        }


//        Scanner scan = new Scanner(System.in);
//
//        int year = scan.nextInt();
//
//        int month = scan.nextInt();
//        int days[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
//        if (2 == month && 0 == (year % 4) && (0 != (year % 100) || 0 == (year % 400))) {
//            days[1] = 29;
//        }
//
//        System.out.println((year+"年"+month+"月有"+days[month - 1]+"天"));











